gdkwindow: Fix potential NULL pointer dereferences in event code
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:21:28 +0000 (17:21 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Sun, 7 Aug 2016 07:17:50 +0000 (08:17 +0100)
commit7b40fdbc2109ed40faff051bcf2c323ffb280741
treea4dd7ca5b717a83d62be251d3e5d99df51ebeafd
parent76721e736e9605b3a7ec76d3676d8cb5f4172490
gdkwindow: Fix potential NULL pointer dereferences in event code

The event code could potentially dereference pointer_info if the
invariant that ENTER_NOTIFY and LEAVE_NOTIFY events are only emitted on
devices which have pointers is violated elsewhere.

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760
gdk/gdkwindow.c